/* App.css - 新增悬停效果和海报样式 */
:root {
  --primary-color: #388e3c;
  --secondary-color: #66bb6a;
  --light-green: #e8f5e9;
  --gold-color: #ffd54f;
  --text-dark: #333;
}

/* 海报卡片悬停效果 */
.poster-preview {
  position: relative;
  height: 220px;
  overflow: hidden; /* 确保放大时内容不溢出 */
  border-radius: 8px 8px 0 0;
}

/* 海报内容样式 */
.dragon-boat-poster {
  position: relative;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #d6e7c1, #a5d6a7);
  padding: 15px;
  box-sizing: border-box;
  transition: transform 0.4s ease; /* 添加过渡效果 */
}

/* 主标题样式 */
.poster-title-main {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  z-index: 2;
}

/* 主插画区 */
.main-illustration {
  position: absolute;
  top: 50px;
  left: 15px;
  width: 55%;
  height: 140px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #2e7d32;
}

/* 右侧小插画 */
.sub-illustrations {
  position: absolute;
  top: 50px;
  right: 15px;
  width: 35%;
  height: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zongzi-illustration,
.wine-illustration {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  /* color: #2e7d32; */
}

/* 装饰叶子 */
.decoration-leaves {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 80%;
  height: 20px;
  background: rgba(121, 162, 121, 0.4);
  border-radius: 10px;
  transform: translateX(-50%);
}

/* 悬停遮罩层 */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(56, 142, 60, 0.7); /* 半透明绿色 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* 初始不可见 */
  transition: opacity 0.3s ease;
  z-index: 3;
}

/* 下载按钮 */
.download-btn {
  background: #ffd54f;
  border-color: #ffd54f;
  color: #333;
  font-weight: bold;
  padding: 8px 20px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.download-btn:hover {
  background: #ffc107;
  border-color: #ffc107;
  color: #333;
}

/* 悬停效果 */
.poster-card:hover .dragon-boat-poster {
  transform: scale(1.05); /* 细微放大效果 */
}

.poster-card:hover .hover-overlay {
  opacity: 1; /* 显示遮罩层 */
}

/* 海报元素标签 */
.element-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.element-tag {
  background-color: #f1f8e9;
  color: #5b8c3a;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px dashed #c5e1a5;
}

/* 其他样式保持不变... */

.stuff-container {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
}

/* 标签页样式 */
.stuff-container .ant-tabs {
  height: 100%;
}

.stuff-container .ant-tabs-nav {
  margin-bottom: 16px;
}

.stuff-container .ant-tabs-tab {
  padding: 8px 16px;
  font-size: 14px;
}

.stuff-container .ant-tabs-tab-active {
  font-weight: 500;
}

/* 素材网格布局 */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  padding: 8px 0;
}

/* 素材项样式 */
.material-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.material-item:hover {
  background-color: #f5f5f5;
}

.material-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 4px;
}

.material-item span {
  font-size: 12px;
  color: #666;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 滚动条样式 */
.stuff-container::-webkit-scrollbar {
  width: 6px;
}

.stuff-container::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

.stuff-container::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}